package com.stackexchange.webapis.events
{
	import com.adobe.webapis.events.ServiceEvent;

	public class StackExchangeResultEvent extends ServiceEvent
	{
		/************************************
		/*    ANSWERS METHOD GROUP CALLS    */
		/************************************/
		public static const ANSWERS_GET:String = "answersGet";
		public static const ANSWERS_GET_COMMENTS:String = "answersGetComments";
		
		/************************************
		/*     BADGES METHOD GROUP CALLS    */
		/************************************/
		public static const BADGES_GET_ALL:String = "badgesGetAll";
		public static const BADGES_GET_BY_USER:String = "badgesGetByUser";
		public static const BADGES_GET_ALL_NAME:String = "badgesGetAllName";
		public static const BADGES_GET_All_TAGS:String = "badgesGetAllTags";
		
		/************************************
		/*    COMMENTS METHOD GROUP CALLS   */
		/************************************/
		public static const COMMENTS_GET_BY_ID:String = "commentsGetById";
		
		/************************************
		/*    ERRORS METHOD GROUP CALLS     */
		/************************************/
		public static const ERRORS_GET_BY_ID:String = "errorsGetById";
		
		/************************************
		 /*    POSTS METHOD GROUP CALLS     */
		/************************************/
		public static const POSTS_GET_COMMENTS:String = "postsGetComments";
		
		/************************************
		 /*    POSTS METHOD GROUP CALLS     */
		/************************************/
		public static const QUESTIONS_GET:String = "questionsGet";
		public static const QUESTIONS_GET_BY_ID:String = "questionsGetById";
		public static const QUESTIONS_GET_ANSWERS:String = "questionsGetAnswers";
		public static const QUESTIONS_GET_COMMENTS:String = "questionsGetComments";
		public static const QUESTIONS_GET_TIMELINE:String = "questionsGetTimeline";
		public static const QUESTIONS_GET_UNANSWERED:String = "questionsGetUnanswered";
		
		
		/**
		 * True if the event is the result of a successful call,
		 * False if the call failed
		 */
		public var success:Boolean;
		
		
		public function StackExchangeResultEvent(type:String, bubbles:Boolean=false,
											  cancelable:Boolean = false
		)
		{
			super(type, bubbles, cancelable);
		}
	}
}